package spring.boot.fusion.redis.controller;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

	@Autowired
	private ValueOperations<String, Object> redisString;

	@GetMapping("test")
	public Object test() {
		String string = UUID.randomUUID().toString();
		redisString.set("a", string);
		return string;
	}
}
